import "babel-polyfill";
import Vue from 'vue'
import App from './App.vue'
import Vant from 'vant';
import router from './router/router.js'
import global from './assets/js/global'
import base from './assets/js/base.js'
import './assets/js/api.js'
import './assets/css/api.css'
import './assets/css/base.css'
import {_API as _API,baseURL as baseURL,axios_b as axios_b} from  './api/http.js'
Vue.config.productionTip = false
Vue.prototype.global = global
Vue.prototype.base = base
Vue.prototype._API = _API
Vue.prototype.baseURL = baseURL
Vue.prototype.axios_b = axios_b
Vue.use(Vant);

if (global.isApp) {
  window.apiready = function () {
    new Vue({
      router,
      render: h => h(App),
    }).$mount('#app')

  }
} else { 
    

  new Vue({
    router,
    render: h => h(App),
  }).$mount('#app')

}
